﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;

namespace MyTcpIp.configuration
{
    /// <summary>
    /// 测点配置
    /// </summary>
    /// 
    [StructLayoutAttribute(LayoutKind.Sequential, Pack = 4)]
    public struct TestPoint
    {
        /// <summary>
        /// 通道使能
        /// </summary>
        public char enable;

        /// <summary>
        /// 测点名称
        /// </summary>
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)]
        public char[] TestPointName;

        /// <summary>
        /// 测点X轴通道ID  值从1开始   xxxxx
        /// </summary>
        public UInt16 TestPointXChannelID;

        /// <summary>
        /// 测点Y轴通道ID  值从1开始   xxxxx
        /// </summary>
        public UInt16 TestPointYChannelID;

        /// <summary>
        /// 轴承座X方向双侧间隙
        /// </summary>                                              
        public float bearhousx;

        /// <summary>
        /// 轴承座y方向双侧间隙
        /// </summary>
        public float bearhousy;

        /// <summary>
        /// X轴初始位置修正
        /// </summary>
        public float iniaxlex;

        /// <summary>
        /// Y轴初始位置修正
        /// </summary>
        public float iniaxley;

        /// <summary>
        /// 轴承座横向偏移
        /// </summary>
        public float bearhori;

        /// <summary>
        /// 轴承座纵向标高
        /// </summary>
        public float bearveri;														
    }
}
